package com.example.yang.samapp;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;

/**
 * Created by Yang on 2016/9/18.
 */
public class ShowActivity extends AppCompatActivity{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        View inflate = View.inflate(this, R.layout.activity_second,null);
        LayoutInflater layoutInflater= (LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
        layoutInflater.inflate(R.layout.activity_second,null);
        setContentView(inflate);
    }
}
